]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowAttentionHandler: Don't destroy on open
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 2 Mar 2019 20:15:03 +0000 (21:15 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 2 Mar 2019 21:09:33 +0000 (22:09 +0100)
The activateWindow() call is expected to focus the window, which
already destroys the source. If we then destroy it again explicitly,
we get another "invalid access" warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/430

js/ui/windowAttentionHandler.js

index 27b342b0000f7d6373f1d99077895c985f29caa7..abdb8a444e73c091a51411475895024a81e62fb9 100644 (file)
@@ -101,6 +101,5 @@ var Source = class WindowAttentionSource extends MessageTray.Source {
 
     open() {
         Main.activateWindow(this._window);
-        this.destroy();
     }
 };